package com.linciping.gradle.inject.view.utils

import groovyjarjarasm.asm.Opcodes

object FragmentHook {

    const val FRAGMENT_HOOK_CLASS = "com/linciping/gradle/test/FragmentInjector"
    const val FRAGMENT_HOOK_TAG = "Lcom/linciping/gradle/test/FragmentInjectorTag;"
    val FRAGMENT_METHODS = mapOf(
        Pair(
            "onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V", FragmentHookMethodCell(
                "onViewCreated",
                "(Landroid/view/View;Landroid/os/Bundle;)V",
                "",
                "injectorFragment",
                "(Ljava/lang/Object;Landroid/view/View;Landroid/os/Bundle;)V",
                0, 3, listOf(Opcodes.ALOAD, Opcodes.ALOAD, Opcodes.ALOAD)
            )
        )
    )
}